Skip to main content

Sugar Water Level Sensor

Water level sensor, used to detect water level height. It can provide a numerical value that reflects the water level to some extent. When not immersed in water, the value is 0. As the water level rises, the feedback analog value increases (non-linearly).
water.png

Parameters


Size24 x 24 x 70 mm
Weight6.7 g
SignalAnalog Input
Range0~3.3V Corresponds to Micro:bit 0~1023
Detection targetWater Level

Note


1、The water level reading is nonlinear and can only reflect the water level status to a certain extent.

2、It is strictly prohibited to submerge the plastic housing part in water.

Wiring


Connect the light sensor module to P1 on the Robotbit Edu using a 3-pin terminal cable.

(Only P0, P1, and P2 pins can be connected, as they have analog read functionality.)

After turning on the Robotbit power, you will see the red light at the bottom of the soil module illuminate (indicating the module is powered normally).
![image.png](方糖 水位传感器.assets/1634634898014-5fc92395-d3bb-4041-8c34-8b0a0bd69823.png)

Programming

#Water Level Reminder

When the water level exceeds a certain height, i.e., greater than the threshold (set here to 400), an alarm is triggered. If the threshold is difficult to reach, the value can be set lower.
image.png